# 指定cmake最低版本
cmake_minimum_required(VERSION 3.15)

# 指定项目名称
project(soldier)

# 指定头文件目录
include_directories(${PROJECT_SOURCE_DIR}/include)

# 设置编译选项
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g") 
# set(CMAKE_BUILD_TYPE "Debug")

# 生成可执行文件
# add_executable(soldier main.cpp src/soldier.cpp src/Gun.cpp)
file(GLOB SOURCES "src/*.cpp")
add_executable(soldier main.cpp ${SOURCES})

# 指定可执行文件输出目录
set(EXECUTABLE_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/bin)